<?php

require_once SYSTEM. 'lang.php';

class start
{
    
    private $content    = array ();
    private $lang       = null;
    
    public function __construct ()
    {
        
        $this -> lang = new lang;
        
        $content = array ('code'=>'401', 'text'=> $this -> lang -> code_401 );
    
        $this -> content = $this -> content_prepare( $content );
    }
    
    public function content ()
    {
        return $this -> content;
    }
    
    private function content_prepare (&$content)
    {
        return json_encode ($content);
    }
}

?>